package com.skt.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.skt.manage.mapper.HealthProfilesMapper;
import com.skt.manage.domain.HealthProfiles;
import com.skt.manage.service.IHealthProfilesService;

/**
 * 健康档案Service业务层处理
 * 
 * @author ffbaby
 * @date 2025-03-11
 */
@Service
public class HealthProfilesServiceImpl implements IHealthProfilesService 
{
    @Autowired
    private HealthProfilesMapper healthProfilesMapper;

    /**
     * 查询健康档案
     * 
     * @param profileId 健康档案主键
     * @return 健康档案
     */
    @Override
    public HealthProfiles selectHealthProfilesByProfileId(Long profileId)
    {
        return healthProfilesMapper.selectHealthProfilesByProfileId(profileId);
    }

    /**
     * 查询健康档案列表
     * 
     * @param healthProfiles 健康档案
     * @return 健康档案
     */
    @Override
    public List<HealthProfiles> selectHealthProfilesList(HealthProfiles healthProfiles)
    {
        return healthProfilesMapper.selectHealthProfilesList(healthProfiles);
    }

    /**
     * 新增健康档案
     * 
     * @param healthProfiles 健康档案
     * @return 结果
     */
    @Override
    public int insertHealthProfiles(HealthProfiles healthProfiles)
    {
        return healthProfilesMapper.insertHealthProfiles(healthProfiles);
    }

    /**
     * 修改健康档案
     * 
     * @param healthProfiles 健康档案
     * @return 结果
     */
    @Override
    public int updateHealthProfiles(HealthProfiles healthProfiles)
    {
        return healthProfilesMapper.updateHealthProfiles(healthProfiles);
    }

    /**
     * 批量删除健康档案
     * 
     * @param profileIds 需要删除的健康档案主键
     * @return 结果
     */
    @Override
    public int deleteHealthProfilesByProfileIds(Long[] profileIds)
    {
        return healthProfilesMapper.deleteHealthProfilesByProfileIds(profileIds);
    }

    /**
     * 删除健康档案信息
     * 
     * @param profileId 健康档案主键
     * @return 结果
     */
    @Override
    public int deleteHealthProfilesByProfileId(Long profileId)
    {
        return healthProfilesMapper.deleteHealthProfilesByProfileId(profileId);
    }
}
